<?php
/*
 * mahuohuo 用于实现SAE存储的辅助文件
 */
$storagepath = array(SAE_TMP_PATH, 'SaeStorage',  urldecode($_GET['domain']),  urldecode($_GET['filename']));
$storagepath = implode(DIRECTORY_SEPARATOR, $storagepath);
if(wincache_file_exists($storagepath.'.mahuohuofile')){
   $headedata = wincache_file_get_contents($storagepath.'.mahuohuofile');
   $headedata = json_decode((string)$headedata, TRUE);
   header('Expires: '.$headedata['expires']);
   header('Content-Type:'.$headedata['type'].';charset='.$headedata['encoding']);
}
echo wincache_file_get_contents($storagepath);
?>
